package com.example.casclientdemo.controller;

import org.apache.shiro.authz.annotation.RequiresPermissions;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;

@Controller
public class IndexCtrl {

    @GetMapping("index")
    public String index(){
        return "index";
    }
    @GetMapping("auth")
    @RequiresPermissions("user")
    public String auth(){
        return "auth";
    }

}